﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spring.Context.Support;
using Project.Manager;
using System.Web.UI;
using Project.Model;

public class LoginPage : BasePage
{
    /// <summary>
    /// 当前登录用户
    /// </summary>
    protected UserManager currentUser;

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);

        // 验证是否登录
        CheckIsLogin();

        // 获取当前登录用户
        currentUser = ManagerFactory.UserManagerManager.GetByUserName(Page.User.Identity.Name);
    }

}
